home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / biz / dbase / mSQL_2_0b3.lha / msql / makegen / yacc.mm < prev   
Text File  |  1998-01-04  |  388b  |  22 lines

  1. #!/bin/sh
  2.  
  3. . $MACRO_DIR/makegen/makegen.cf
  4.  
  5. src=$1
  6. shift
  7. comment=$*
  8. outfile=`echo $src | sed "s/\.y\$/.c/"`
  9. obj=`echo $src | sed "s/\.y\$/.o/"`
  10.  
  11. echo    "$outfile : $src"
  12. echo    "    @echo \"$comment\""
  13. echo    '    $(YACC) $(YACC_FLAGS)'" $src"
  14. echo    "    mv y.tab.c $outfile"
  15. echo
  16. echo    "$obj : $outfile"
  17. echo    '    $(CC) $(CC_FLAGS)'" -c $outfile"
  18. echo
  19. echo    "clean ::"
  20. echo    "    rm -f $outfile y.tab.*"
  21. echo
  22.